package model

import (
	"black_mamba/global"
)

// 如果含有time.Time 请自行import time包
type InventoryHistory struct {
	global.BM_MODEL
	InventoryId int `json:"inventory_id" form:"inventory_id" gorm:"column:inventory_id;comment:;type:int;size:11;"`
	Asin string `json:"asin" form:"asin" gorm:"column:asin;comment:;varchar(255);size:255;"`
	Rank int `json:"rank" form:"rank" gorm:"column:rank;comment:;type:int;size:11;"`
	SalesQuantity  int `json:"sales_quantity" form:"sales_quantity" gorm:"column:sales_quantity;comment:;type:int;size:11;"`
}

func (InventoryHistory) TableName() string {
	return "inventory_history"
}